//Source file: D:\\WTK104\\apps\\Toddtris\\src\\com\\toddsoft\\toddtris\\control\\simple\\SimpleController.java

package com.toddsoft.toddtris.control.simple;

import com.toddsoft.toddtris.control.ToddtrisController;
import com.toddsoft.toddtris.control.ActionHandler;
import com.toddsoft.toddtris.control.StillHandler;
import com.toddsoft.toddtris.control.MovingHandler;
import com.toddsoft.toddtris.model.Well;

public class SimpleController extends ToddtrisController {

	/**
     * @param well
     */
    public SimpleController(Well well) {
        super(well);     
    }
    
    /**
     * @return com.toddsoft.toddtris.control.ActionHandler
     */
    protected ActionHandler getHandler() {
        if (well.isMoving()) {
            return MovingHandler.getInstance();
        } else {
            return StillHandler.getInstance();
        }     
    }
}
